package com.light.roller;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.opengl.buffer.BufferObjectManager;

import android.content.Intent;

import com.badlogic.gdx.math.Vector2;
import com.huw.debuger.Debugger;


public class Roller_SS extends Roller{
	
	@Override
	public Engine onLoadEngine() {
		
		Vector2 cameraCenter = new Vector2(52, 300);
		Vector2 playerInitialPositon = new Vector2(52,300);
		Vector2 doorPosition = new Vector2(530,195);
		stage = new Stage_SS(this);
		stage.onLoadEngine();
		Engine engine = initialize(cameraCenter, playerInitialPositon,doorPosition, Direction.UP);
		
		Debugger.HIDE_STATIC_WALL = false;
		return engine;
	}
	public void reset()
	{
		ResourceManager.unLoadAllSounds();
		stage.removeStoper(scene, physicsWorld);
		Roller_SS.this.finish(); 
		Roller_SS.this.startActivity(new Intent(Roller_SS.this, Roller_SS.class)); 
		BufferObjectManager.getActiveInstance().clear();
		
	}
	
	@Override
	protected void nextStageSetting()
	{
		Roller_SS.this.finish(); 
		Roller_SS.this.startActivity(new Intent(Roller_SS.this, Roller_3.class));
		BufferObjectManager.getActiveInstance().clear();
		
	}

}
